package se.zust.edu.cn;
public class Message {
    private int id;
    private String topic;
    private String content;
    private User from;
    private User to;

    public Message(int id, String topic, String content, User from, User to) {
        this.id = id;
        this.topic = topic;
        this.content = content;
        this.from = from;
        this.to = to;
    }

    public Message() {

    }

    // getters and setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public User getFrom() {
        return from;
    }

    public void setFrom(User from) {
        this.from = from;
    }

    public User getTo() {
        return to;
    }

    public void setTo(User to) {
        this.to = to;
    }
}